<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"zzcz.cc","root":"/","scheme":"Pisces","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="本篇介绍在 Ubuntu 18.04 LTS 上配置 esp-open-sdk 开发环境 0. 安装相关工具123456789101112cd ~&#x2F;Downloadssudo apt-get updatesudo apt-get install make unrar-free autoconf automake libtool gcc g++ gperf \ flex bison tex">
<meta property="og:type" content="article">
<meta property="og:title" content="使用ESP8266直连HomeKit在Ubuntu上搭建开发环境">
<meta property="og:url" content="http://zzcz.cc/a1e883a9.html">
<meta property="og:site_name" content="茁壮成长">
<meta property="og:description" content="本篇介绍在 Ubuntu 18.04 LTS 上配置 esp-open-sdk 开发环境 0. 安装相关工具123456789101112cd ~&#x2F;Downloadssudo apt-get updatesudo apt-get install make unrar-free autoconf automake libtool gcc g++ gperf \ flex bison tex">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2021-04-13T08:26:21.000Z">
<meta property="article:modified_time" content="2021-04-13T08:31:34.000Z">
<meta property="article:author" content="YAND">
<meta property="article:tag" content="Hexo , Next">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://zzcz.cc/a1e883a9.html">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>使用ESP8266直连HomeKit在Ubuntu上搭建开发环境 | 茁壮成长</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">茁壮成长</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">人生在世 难得糊涂</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://zzcz.cc/a1e883a9.html">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.jpg">
      <meta itemprop="name" content="YAND">
      <meta itemprop="description" content="成长历程 IT笔记 黑苹果 杂谈 建站 服务器 VPS">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="茁壮成长">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          使用ESP8266直连HomeKit在Ubuntu上搭建开发环境
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2021-04-13 16:26:21 / 修改时间：16:31:34" itemprop="dateCreated datePublished" datetime="2021-04-13T16:26:21+08:00">2021-04-13</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>本篇介绍在 Ubuntu 18.04 LTS 上配置 <a target="_blank" rel="noopener" href="https://github.com/pfalcon/esp-open-sdk">esp-open-sdk</a> 开发环境</p>
<h2 id="0-安装相关工具"><a href="#0-安装相关工具" class="headerlink" title="0. 安装相关工具"></a>0. 安装相关工具</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">cd ~&#x2F;Downloads</span><br><span class="line"></span><br><span class="line">sudo apt-get update</span><br><span class="line"></span><br><span class="line">sudo apt-get install make unrar-free autoconf automake libtool gcc g++ gperf \ flex bison texinfo gawk ncurses-dev libexpat-dev python-dev python python-serial \ sed git unzip bash help2man wget bzip2</span><br><span class="line"></span><br><span class="line">sudo apt-get install libtool-bin</span><br><span class="line"></span><br><span class="line">sudo apt install help2man</span><br><span class="line"></span><br><span class="line">烧录工具</span><br><span class="line">pip install esptool</span><br></pre></td></tr></table></figure>

<h2 id="1-下载-esp-open-sdk"><a href="#1-下载-esp-open-sdk" class="headerlink" title="1. 下载 esp-open-sdk"></a>1. 下载 esp-open-sdk</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">git clone --recursive https:&#x2F;&#x2F;github.com&#x2F;pfalcon&#x2F;esp-open-sdk.git</span><br><span class="line"></span><br><span class="line">cd esp-open-sdk</span><br><span class="line"></span><br><span class="line">make toolchain esptool libhal STANDALONE&#x3D;n</span><br></pre></td></tr></table></figure>

<p>这一步开始编译SDK，过程中需要下载诸多依赖库，会耗费相当长的时间，而且容易报错，一般情况是某几个依赖库因为网络问题下载失败导致的。</p>
<p>可以查看 <code>esp-open-sdk/crosstool-NG/build.log</code> 文件中的错误信息，根据错误信息下载缺失的依赖包，放在 <code>~/Downloads/esp-open-sdk/crosstool-NG/.build/tarballs</code> 目录下</p>
<p>例：<code>newlib</code> 到 <a target="_blank" rel="noopener" href="http://mirrors.kernel.org/sourceware/newlib">http://mirrors.kernel.org/sourceware/newlib</a> 下载 <code>newlib-2.0.0.tar.gz</code><br>在 <code>~/Downloads/esp-open-sdk/crosstool-NG/.build/</code> 目录下创建 <code>tarballs</code> 文件夹，将 <code>newlib-2.0.0.tar.gz</code> 放该目录下</p>
<p>编译成功后的目录：</p>
<h2 id="2-配置系统变量"><a href="#2-配置系统变量" class="headerlink" title="2. 配置系统变量"></a>2. 配置系统变量</h2><p>将 <code>eap-open-sdk</code> 移动到 <code>/opt</code> 目录下</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">cd ~&#x2F;Downloads</span><br><span class="line"></span><br><span class="line">sudo mv -f esp-open-sdk &#x2F;opt</span><br></pre></td></tr></table></figure>

<p>在系统路径中加入编译器路径</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">export PATH&#x3D;$PATH:&#x2F;opt&#x2F;esp-open-sdk&#x2F;xtensa-lx106-elf&#x2F;bin</span><br></pre></td></tr></table></figure>

<h2 id="写在前面"><a href="#写在前面" class="headerlink" title="写在前面"></a>写在前面</h2><p>使用 <code>esp8266</code> 直连 <code>HomeKit</code> 控制继电器，使用了两个开源项目：</p>
<ol>
<li><a target="_blank" rel="noopener" href="https://github.com/RavenSystem/esp-homekit-devices">esp-homekit-devices</a></li>
<li><a target="_blank" rel="noopener" href="https://github.com/Gruppio/Sonoff-Homekit">Sonoff-Homekit</a></li>
</ol>
<p>这两个项目使用起来不方便，因此我进行了整合：<a target="_blank" rel="noopener" href="https://github.com/LeeLulin/esp-homekit-direct">esp-homekit-devices</a></p>
<h2 id="0-下载"><a href="#0-下载" class="headerlink" title="0. 下载"></a>0. 下载</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">cd ~&#x2F;Documents</span><br><span class="line">git clone --recursive https:&#x2F;&#x2F;github.com&#x2F;LeeLulin&#x2F;esp-homekit-direct.git</span><br></pre></td></tr></table></figure>

<h2 id="1-编译固件"><a href="#1-编译固件" class="headerlink" title="1. 编译固件"></a>1. 编译固件</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">cd esp-homekit-direct</span><br><span class="line">make -C devices&#x2F;switch all</span><br></pre></td></tr></table></figure>

<p><em>注：本项目实例为 <code>esp8266，如果使用其它型号，则需要修改 </code>esp-homekit-direct/devices/switch/main.c` 中的引脚定义：</em></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&#x2F;&#x2F; The GPIO pin that is connected to last pin of the programming strip of the Sonoff Basic.</span><br><span class="line">const int pin_gpio &#x3D; 14;</span><br><span class="line">&#x2F;&#x2F; The GPIO pin that is connected to the relay on the Sonoff Basic.</span><br><span class="line">const int relay_gpio &#x3D; 12;</span><br><span class="line">&#x2F;&#x2F; The GPIO pin that is connected to the LED on the Sonoff Basic.</span><br><span class="line">const int led_gpio &#x3D; 13;</span><br><span class="line">&#x2F;&#x2F; The GPIO pin that is oconnected to the button on the Sonoff Basic.</span><br><span class="line">const int button_gpio &#x3D; 0;</span><br></pre></td></tr></table></figure>

<p>编译完成会在 <code>/devices/switch/firmware</code> 目录下生成 <code>switch.bin</code> 文件，且已存在 <code>rboot.bin</code> 和 <code>blank_config.bin</code> 两个文件</p>
<h2 id="2-烧录固件"><a href="#2-烧录固件" class="headerlink" title="2. 烧录固件"></a>2. 烧录固件</h2><h3 id="Ubuntu"><a href="#Ubuntu" class="headerlink" title="Ubuntu"></a>Ubuntu</h3><h4 id="0-连接电脑"><a href="#0-连接电脑" class="headerlink" title="0. 连接电脑"></a>0. 连接电脑</h4><p>把 <code>esp8266</code> 通过 <code>USB转TTL</code> 烧录器连接到电脑</p>
<p>查看端口号:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ls -l &#x2F;dev&#x2F;ttyUSB*</span><br></pre></td></tr></table></figure>

<p>我的是 <code>ttyUSB0</code></p>
<p>修改权限:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo chmod 777 &#x2F;dev&#x2F;ttyUSB0</span><br></pre></td></tr></table></figure>

<h4 id="1-擦除-Flash"><a href="#1-擦除-Flash" class="headerlink" title="1. 擦除 Flash"></a>1. 擦除 Flash</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">esptool.py --port &#x2F;dev&#x2F;ttyUSB0 erase_flash</span><br></pre></td></tr></table></figure>

<h4 id="2-烧录固件-1"><a href="#2-烧录固件-1" class="headerlink" title="2. 烧录固件"></a>2. 烧录固件</h4><p>擦除 Flash 之后需要重新插拔一下 esp8266</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">cd &#x2F;devices&#x2F;switch&#x2F;firmware</span><br><span class="line"></span><br><span class="line">esptool.py -p &#x2F;dev&#x2F;ttyUSB0 -b 115200 write_flash -fs 8m -fm dout -ff 40m 0x0 rboot.bin 0x1000 blank_config.bin 0x2000 switch.bin</span><br></pre></td></tr></table></figure>

<h3 id="Windows"><a href="#Windows" class="headerlink" title="Windows"></a>Windows</h3><h4 id="1-安装python"><a href="#1-安装python" class="headerlink" title="1. 安装python"></a>1. 安装python</h4><h4 id="2-安装esptool"><a href="#2-安装esptool" class="headerlink" title="2. 安装esptool"></a>2. 安装esptool</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pip install esptool</span><br></pre></td></tr></table></figure>

<h4 id="3-移动固件"><a href="#3-移动固件" class="headerlink" title="3. 移动固件"></a>3. 移动固件</h4><p>把 <code>/devices/switch/firmware</code> 目录下的三个文件：<code>rboot.bin</code> <code>blank_config.bin</code> <code>switch.bin</code> 复制到python根目录下</p>
<h4 id="4-清空-Flash"><a href="#4-清空-Flash" class="headerlink" title="4. 清空 Flash"></a>4. 清空 Flash</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">esptool.py -p [端口] earse_flash</span><br><span class="line">例：esptool.py -p COM4 earse_flash</span><br></pre></td></tr></table></figure>

<h4 id="5-烧录固件"><a href="#5-烧录固件" class="headerlink" title="5. 烧录固件"></a>5. 烧录固件</h4><p>Windows烧录固件有两种方式：使用 <code>ESPFlashDownLoadTool 工具</code> 或者 <code>esptool.py</code></p>
<p>这里使用 <code>esptool.py</code>:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">esptool.py -p [端口] -b 115200 write_flash -fs 1MB -fm dout -ff 40m 0x0 rboot.bin 0x1000 blank_config.bin 0x2000 switch.bin</span><br></pre></td></tr></table></figure>
    </div>

    
    
    

      <footer class="post-footer">

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/c98f22d6.html" rel="prev" title="Docker安装及编译ESP-OPEN-SDK程序">
      <i class="fa fa-chevron-left"></i> Docker安装及编译ESP-OPEN-SDK程序
    </a></div>
      <div class="post-nav-item"></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#0-%E5%AE%89%E8%A3%85%E7%9B%B8%E5%85%B3%E5%B7%A5%E5%85%B7"><span class="nav-number">1.</span> <span class="nav-text">0. 安装相关工具</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#1-%E4%B8%8B%E8%BD%BD-esp-open-sdk"><span class="nav-number">2.</span> <span class="nav-text">1. 下载 esp-open-sdk</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-%E9%85%8D%E7%BD%AE%E7%B3%BB%E7%BB%9F%E5%8F%98%E9%87%8F"><span class="nav-number">3.</span> <span class="nav-text">2. 配置系统变量</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%86%99%E5%9C%A8%E5%89%8D%E9%9D%A2"><span class="nav-number">4.</span> <span class="nav-text">写在前面</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#0-%E4%B8%8B%E8%BD%BD"><span class="nav-number">5.</span> <span class="nav-text">0. 下载</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#1-%E7%BC%96%E8%AF%91%E5%9B%BA%E4%BB%B6"><span class="nav-number">6.</span> <span class="nav-text">1. 编译固件</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-%E7%83%A7%E5%BD%95%E5%9B%BA%E4%BB%B6"><span class="nav-number">7.</span> <span class="nav-text">2. 烧录固件</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#Ubuntu"><span class="nav-number">7.1.</span> <span class="nav-text">Ubuntu</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#0-%E8%BF%9E%E6%8E%A5%E7%94%B5%E8%84%91"><span class="nav-number">7.1.1.</span> <span class="nav-text">0. 连接电脑</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#1-%E6%93%A6%E9%99%A4-Flash"><span class="nav-number">7.1.2.</span> <span class="nav-text">1. 擦除 Flash</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#2-%E7%83%A7%E5%BD%95%E5%9B%BA%E4%BB%B6-1"><span class="nav-number">7.1.3.</span> <span class="nav-text">2. 烧录固件</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#Windows"><span class="nav-number">7.2.</span> <span class="nav-text">Windows</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#1-%E5%AE%89%E8%A3%85python"><span class="nav-number">7.2.1.</span> <span class="nav-text">1. 安装python</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#2-%E5%AE%89%E8%A3%85esptool"><span class="nav-number">7.2.2.</span> <span class="nav-text">2. 安装esptool</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#3-%E7%A7%BB%E5%8A%A8%E5%9B%BA%E4%BB%B6"><span class="nav-number">7.2.3.</span> <span class="nav-text">3. 移动固件</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#4-%E6%B8%85%E7%A9%BA-Flash"><span class="nav-number">7.2.4.</span> <span class="nav-text">4. 清空 Flash</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#5-%E7%83%A7%E5%BD%95%E5%9B%BA%E4%BB%B6"><span class="nav-number">7.2.5.</span> <span class="nav-text">5. 烧录固件</span></a></li></ol></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="YAND"
      src="/images/avatar.jpg">
  <p class="site-author-name" itemprop="name">YAND</p>
  <div class="site-description" itemprop="description">成长历程 IT笔记 黑苹果 杂谈 建站 服务器 VPS</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">19</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">6</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">6</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/vvvc" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;vvvc" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:d.zt@qq.com" title="E-Mail → mailto:d.zt@qq.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
  </div>


  <div class="links-of-blogroll motion-element">
    <div class="links-of-blogroll-title">
      <i class="fa fa-fw fa-link"></i>
      Links
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="http://vxgo.cn/" title="http:&#x2F;&#x2F;vxgo.cn" rel="noopener" target="_blank">不语玩卡</a>
        </li>
    </ul>
  </div>

      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        
  <div class="beian"><a href="http://www.beian.miit.gov.cn/" rel="noopener" target="_blank">京ICP备20023063号 </a>
  </div>

<div class="copyright">
  
  &copy; 2016 – 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">YAND</span>
</div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
